example of friend function